package com.example.chat.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName(value = "group_user")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GroupUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("group_chat_id")
    private Long groupChatId;
    @TableField("role")
    private Integer role;
    @TableField("group_nickname")
    private String groupNickName;
    @TableField("status")
    private Integer status;
    @TableField("last_active_time")
    private LocalDateTime lastActiveTime;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;

}
